cmake_minimum_required(VERSION 3.5.2)
project(Qt5-Example
	VERSION 1.0.01 # 版本
	LANGUAGES CXX
)

set(CMAKE_AUTOMOC ON) # Qt元
set(CMAKE_AUTORCC ON) # 处理qrc文件
set(CMAKE_AUTOUIC OFF) # 处理UI文件

set(CMAKE_CXX_STANDARD 17) # c++ 标准

find_package(Qt5 REQUIRED Widgets)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

add_subdirectory(QDialog)
add_subdirectory(QMainWindow)
